from .shushan.skill_list import SkillList

# 护甲类型  
class ArmorType:
    LIGHT_ARMOR = "轻甲"
    HEAVY_ARMOR = "重甲"

# 职业类型
class CareerType:
    # 远程
    RANGED = "远程"
    # 近战
    MELEE = "近战"
    # 法系
    FASION = "法系"
    # 召唤
    SUMMON = "召唤"    
    # 治疗
    HEAL = "治疗"   
    # 辅助
    SUPPORT = "辅助"

# 职业主要消耗
class CareerConsume:
    # 能量
    ENERGY = "能量"
    # 内力
    FORCE = "内力"

# 职业列表
class CareerList:
    SHUSHAN = "蜀山"
    TISHA = "天煞"
    def __init__(self):
        pass

    # 获取职业
    def get_career(self, career_name: str) -> dict:
        return Career(career_name).get_career_info()

# 职业
class Career:
    def __init__(self, career_name: str):
        self.career_name = career_name

    # 职业信息
    def get_career_info(self) -> dict:
        if self.career_name == CareerList.SHUSHAN:
            skill_list = SkillList().get_career()
            return {
                "name": self.career_name,
                "description": "蜀山是一个以剑术为主的职业，擅长远程攻击和控制。",
                "skills": skill_list["skills"],
                # 护甲类型
                "armor_type": ArmorType.LIGHT_ARMOR,
                # 职业类型
                "career_type": CareerType.MELEE,
                # 职业技能列表
                # 职业主要消耗
                "consume": CareerConsume.ENERGY,
                # 职业主要属性
                "main_attribute": "敏捷",
            }
        # 可以为其他职业添加类似的逻辑
        return {self.career_name: {}}

